import request from '@/utils/request'

// 查询员工基本列表
export function listBasestaff(query) {
  return request({
    url: '/system/basestaff/list',
    method: 'get',
    params: query
  })
}

// 查询员工基本详细
export function getBasestaff(id) {
  return request({
    url: '/system/basestaff/' + id,
    method: 'get'
  })
}

// 新增员工基本
export function addBasestaff(data) {
  return request({
    url: '/system/basestaff',
    method: 'post',
    data: data
  })
}

// 修改员工基本
export function updateBasestaff(data) {
  return request({
    url: '/system/basestaff',
    method: 'put',
    data: data
  })
}

// 删除员工基本
export function delBasestaff(id) {
  return request({
    url: '/system/basestaff/' + id,
    method: 'delete'
  })
}
